<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>

<h3 style="padding-left: 20px;padding-top: 10px">
	<?=$data['name']?>——详情<?php if($data['is_activity']==1){$column="activity";}else{$column="contest";}?>
	<a href="./index.php?m=contest&c=manage&a=init&is_activity=<?=$data['is_activity']?>" style="font-size:14px;color: #0000FF"><em>返回上一级</em></a>
</h3>

<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href="./index.php?m=contest&c=manage&a=view&id=<?=$id?>&is_activity=<?=$data['is_activity']?>&contest_id=<?=$id?>" class="on"><em><?php echo L($column)?>详情</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=award&a=init&id=<?=$id?>&is_activity=<?=$data['is_activity']?>&contest_id=<?=$id?>"><em><?php echo L($column)?>奖项</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=winner&a=init&contest_id=<?=$id?>&is_activity=<?=$data['is_activity']?>"><em><?php echo L($column)?>获奖</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=process&a=init&id=<?=$id?>&is_activity=<?=$data['is_activity']?>&contest_id=<?=$id?>"  ><em><?php echo L($column)?>流程</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=sign&a=init&id=<?=$id?>&is_activity=<?=$data['is_activity']?>&contest_id=<?=$id?>"   ><em>报名信息</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=contestant&a=init&contest_id=<?=$id?>&is_activity=<?=$data['is_activity']?>" ><em>参赛者</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=sponsor&a=init&id=<?=$id?>&is_activity=<?=$data['is_activity']?>&contest_id=<?=$id?>"><em>相关单位</em></a>
		<span>|</span>
		<a href="./index.php?m=contest&c=guest&a=init&contest_id=<?=$id?>&is_activity=<?=$data['is_activity']?>"  ><em>评委嘉宾</em></a>

	</div>
</div>

<div class="pad-lr-10">
	<table width="100%" class="table_form">
		<tr>
			<td width="120"><?php echo L($column.'_name')?>：</td>
			<td><?php
				echo $data['name'];
				?></td>
		</tr>
		<tr>
			<td width="120"><?php echo L($column.'_year')?>：</td>
			<td >
				<?php
 if(isset($data['year']) && !empty($data['year']) ) { echo $data['year'];}else{echo"<span style='color:red;'>（未设置）</span>";}
					
				?>
			</td>
		</tr>
		<tr>
			<td width="120"><?php echo L($column.'_time')?>：</td>
			<td><?php if(!empty($data['begin_time']) && !empty($data['end_time'])){echo date('Y/m/d',strtotime($data['begin_time']))."--".date('Y/m/d',strtotime($data['end_time']));}else{echo"<span style='color:red;'>（未设置）</span>";}?></td>
		</tr>
		<tr>
			<td width="120"><?php echo L($column.'_address')?>：</td>
			<td >
				<?php
				 echo $data['address'];
				?>
			</td>
		</tr>
		<tr>
			<td width="120"><?php echo L($column.'_type')?>：</td>
			<td>

					<?php
 if(isset($this->type[$data['type']]) && !empty($this->type[$data['type']]) ) { echo $this->type[$data['type']];}else{echo"<span style='color:red;'>（未设置）</span>";}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td width="120"><?php echo L($column.'_slogan')?>：</td>
			<td>
				<?php if(isset($data['slogan']) && !empty($data['slogan']) ) { echo $data['slogan'];}else{echo"<span style='color:red;'>（未设置）</span>";}?>
			</td>
		</tr>

		<tr>
			<td width="120"><?php if($is_activity==1){echo '活动宣传图';}else{echo "赛事宣传图";}?>：</td>

			<td>
				<?php if(isset($data['image_cover']) && !empty($data['image_cover'])){?><img src="<?=$data['image_cover']?>"  width="200" /><?php }else{echo"<span style='color:red;'>（未设置）</span>";}?>
				
			</td>
		</tr>

		<tr>
			<td width="120"><?php echo L($column.'_description')?>：</td>
			<td><?php if(isset($data['description']) && !empty($data['description']) ) { echo $data['description'];}else{echo"<span style='color:red;'>（未设置）</span>";}?>
			</td>
		</tr>

		<tr>
			<td width="120"><?php echo L($column.'_parent_name')?>：</td>
			<td>
			     <?php if(isset($parent['name']) && !empty($parent['name']) ) {echo $parent['name'];}else{if ($data['is_activity']==0){echo "<span style='color:red;font-size:16px;'>当前赛事已经是主赛事！</span>";}else{ echo "<span style='color:red;font-size:16px;'>当前活动已经是主活动！</span>";}}?>
			</td>
		</tr>


		</tr>
	</table>

</div>
</body>
</html>